package com.binance.zkconfig.app.constant;

/**
 * Created by Fei.Huang on 2018/8/29.
 */
public final class Constant {

    public final static String SLASH = "/";
    public final static String TRUE_LOWER = "true";
    public final static String UTF_8 = "UTF-8";

    /**
     * 根路径：          /config
     * 全局共享路径：    /config/common  （纯业务逻辑配置放入 /business 路径下；通用全局应用配置以应用名为节点，例如：redis配置信息放入/redis）
     * 微服务路径：     /config/service/{spring-application-name}
     */
    public static final String COMMON_NODE = "/config/common";
    public static final String SERVICE_NODE = "/config/service";

    public final static String SPRING_APPLICATION_NAME = "spring.application.name";

    public static final String ZOOKEEPER_URL = "zookeeper.url";
    public final static String ZK_CONFIG_ENABLED = "zookeeper.config.enabled";
    public final static String ZK_CONFIG_CUSTOM_NODES = "zookeeper.config.customNodes";
}